﻿<UserControl x:Class="Bazookabird.Wpf.Builds.BuildHandlers.SimpleBuildHandlerView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" 
             d:DesignHeight="288" d:DesignWidth="503"
             Template="{StaticResource PanelTemplate}">
    <Grid>        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>            
            <ColumnDefinition />            
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Text="Status:" Margin="0 0 5 0" />
        <TextBlock Text="{Binding LastBuild.Status}" Grid.Column="1" />
        <TextBlock Text="Requested by:" Margin="0 0 5 0" Grid.Row="1" />
        <TextBlock Text="{Binding LastBuild.RequestedBy}" Grid.Row="1" Grid.Column="1" />
        <TextBlock Text="Requested for:" Margin="0 0 5 0" Grid.Row="2" />
        <TextBlock Text="{Binding LastBuild.RequestedFor}" Grid.Row="2" Grid.Column="1" />
        <TextBlock Text="Finish time:" Margin="0 0 5 0" Grid.Row="3" />
        <TextBlock Text="{Binding LastBuild.FinishTime}" Grid.Row="3" Grid.Column="1" />
        <StackPanel Grid.Row="5" Grid.ColumnSpan="7">
            <Label Foreground="DarkGray" Content="{Binding LastUpdated, FallbackValue='Never updated', StringFormat='Last updated: {0}'}" Height="25" HorizontalAlignment="Right"/>
        </StackPanel>
    </Grid>
</UserControl>
